BaseSubsystem.RequestState 方法

請求 KINGSTAR Base 子系統進入到一個特定的 EtherCAT 狀態。例如,若狀態為 Op,而所請求的狀態為 PreOp,則 KINGSTAR Base 子系統狀態變更將為 Op -> SafeOp -> PreOp;若狀態為 Init,而所請求的狀態為 Op,則 KINGSTAR Base 子系統狀態變更將為 Init -> PreOp -> SafeOp -> Op。

命名空間IntervalZero.KINGSTAR.Base.Class

組合: IntervalZero.KINGSTAR.Base.Class (於 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0

語法

C#VB
IKsCommand RequestState(
       EthercatState state
)
Function RequestState(
       state As EthercatState
) As IKsCommand

參數

state

型別:EthercatState

請求的 EtherCAT 狀態。

回傳值

型別:IKsCommand

回傳一個方法的狀態。

可用的 EtherCAT 狀態

ecatOffline, ecatInit, ecatBoot, ecatPreOP, ecatSafeOP, ecatOP

參見

BaseSubsystem 類別

IntervalZero.KINGSTAR.Base.Class 命名空間